*Replication code for Bivariate Probit Models of BIT Signing used to generate marginal predicted probabilities that allow
*controlling for selection in Table 3 in the Article.  The results for these models were not presented in the paper but can
*be found in the file "Appendix Tables.pdf".

use dyadyear_bitsigning, clear
set more off
*Code to replicate Table A1 in Appendix Tables.pdf
eststo clear
*Model 1
eststo: qui biprobit (bit =  host_surv  host_rgdppc home_rgdppc home_experience host_regionshare host_diprep_athome host_commonlaw/*
*/ host_gdppc_growth host_xconst) (bit2 =   home_dem   host_experience host_rgdppc home_rgdppc colony home_diprep_athost atopally /*
*/home_regionshare host_gdppc_growth home_xconst)if atrisk == 1 & host_dem == 0, partial constraint(1) difficult nolog cluster(dyad) 


*Model 2
eststo: qui biprobit (bit =  host_surv  host_rgdppc home_rgdppc home_experience host_regionshare host_diprep_athome host_commonlaw /*
*/host_gdppc_growth host_xconst) (bit2 = home_govagelp home_agedem host_experience host_rgdppc home_rgdppc colony home_diprep_athost /*
*/atopally home_regionshare host_gdppc_growth home_xconst)if atrisk == 1 & home_dem == 1 & host_dem == 0 , partial constraint(1) /*
*/ difficult nolog cluster(dyad) 


esttab, se ar2 b(3) se(3) label

*Code to replicate Table A2 in Appendix Tables.pdf
eststo clear
*Model 3
eststo: qui biprobit (bit = host_govagelp host_agedem host_rgdppc home_rgdppc home_experience host_regionshare host_diprep_athome/*
*/ host_commonlaw  host_gdppc_growth host_xconst) (bit2 = home_dem  host_experience host_rgdppc home_rgdppc colony home_diprep_athost /*
*/ atopally home_regionshare host_gdppc_growth home_xconst)if atrisk == 1 & host_dem == 1, partial constraint(1) difficult nolog cluster(dyad) 


*Model 4
eststo: qui biprobit (bit =  host_govagelp host_agedem  host_rgdppc home_rgdppc home_experience host_regionshare host_diprep_athome /*
*/host_commonlaw  host_gdppc_growth host_xconst) (bit2 =   home_govagelp home_agedem   host_experience host_rgdppc home_rgdppc colony /*
*/home_diprep_athost atopally home_regionshare host_gdppc_growth home_xconst)if atrisk == 1  & home_dem == 1 & host_dem == 1,/*
*/ partial constraint(1) difficult nolog cluster(dyad) 


esttab, se ar2 b(3) se(3) label
